/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package zpsb.accounting.jsf;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Michal
 */
@ManagedBean
@RequestScoped
public class IndexController {
    
    private Integer counter = 0;
    
    public Integer getCounter() {
        return counter;
    }

    public void setCounter(Integer counter) {
        this.counter = counter;
    }
    
    public void increment() {
        counter++;
    }

    /**
     * Creates a new instance of IndexController
     */
    public IndexController() {
    }
}
